window.vue = vue = {
    libsPath: 'webjars/vue/',
    debug: true,
    theme: {elementui: "chalk"}
};
require.config(
    {
        map: { //map告诉RequireJS在任何模块之前，都先载入这个css模块
            '*': {
                css: vue.libsPath + 'require-css/0.1.10/css'
            }
        },
        paths: {
            'vue': vue.libsPath + '2.6.11/vue',
            'ELEMENT': vue.libsPath + 'element-ui/2.13.2/index',
            'lang': vue.libsPath + 'element-ui/2.13.2/locale/zh-CN',
            'httpVueLoader': vue.libsPath + 'loader/http-vue-loader/httpVueLoader',
            'VueRouter': vue.libsPath + 'vue-router/2.6.0/vue-router',
            'loader': vue.libsPath + 'loader/require-vuejs/require-vuejs',
        },
        shim: {
            "ELEMENT": {deps: ["vue", "css!" + vue.libsPath + "element-ui/2.13.2/theme-chalk/index.css"]}
        }
    }
);

require(
    ['vue', 'loader!app/App', 'ELEMENT', 'VueRouter', "lang", "httpVueLoader"],
    function (Vue, app, ELEMENT, VueRouter, lang, httpVueLoader) {
        Vue.use(ELEMENT, {lang, VueRouter})
        Vue.use(httpVueLoader)
        app.$mount("#app")
        // new Vue({
        //     el: "#app",
        //     router: router,
        //     components: {
        //         app: "url:App.vue"
        //     },
        //     template: '<app/>',
        //     data() {
        //         return {datas: ["1", "2", "3"]};
        //     }
        // });
    }
)
;